package com.wdh.kjs.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.wdh.kjs.R;

/**
 * Created by feifei on 2016/4/21.
 */
public class SecuritySetting extends BaseTopActivity implements View.OnClickListener {
    private ImageView security_settint_image;
    private ImageView security_settint_image1;
    private ImageView security_settint_image2;
    private ImageView security_settint_image3;
    private ImageView security_settint_image4;
    private ImageView security_settint_image5;
    private Intent intent;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.security_setting);
        initview();
        initwidge();
    }

    private void initwidge() {
        security_settint_image.setOnClickListener(this);
        security_settint_image1.setOnClickListener(this);
        security_settint_image2.setOnClickListener(this);
        security_settint_image3.setOnClickListener(this);
        security_settint_image4.setOnClickListener(this);
        security_settint_image5.setOnClickListener(this);

    }

    private void initview() {
        initTopBar("安全设置");
        security_settint_image = (ImageView) findViewById(R.id.security_settint_image);
        security_settint_image1 = (ImageView) findViewById(R.id.security_settint_image1);
        security_settint_image2 = (ImageView) findViewById(R.id.security_settint_image2);
        security_settint_image3 = (ImageView) findViewById(R.id.security_settint_image3);
        security_settint_image4 = (ImageView) findViewById(R.id.security_settint_image4);
        security_settint_image5 = (ImageView) findViewById(R.id.security_settint_image5);
    }

    @Override
    public void onClick(View v) {
switch (v.getId()){
    case R.id.security_settint_image:
        intent = new Intent(this, RenzhengActivity.class);
        startActivity(intent);
        break;

    case R.id.security_settint_image1:
        intent = new Intent(this, BangdingActivity.class);
        startActivity(intent);
        break;
    case R.id.security_settint_image2:

        intent = new Intent(this, XiugaiActivity.class);
        startActivity(intent);
break;
    case R.id.security_settint_image3:

        intent = new Intent(this, Xiugai1Activity.class);
        startActivity(intent);
        break;

    case R.id.security_settint_image4:

        intent = new Intent(this, BankCardActivity.class);
        startActivity(intent);
}
    }
}
